use crate::r#type::{RequestType, ResponseType};
use napi_derive_ohos::napi;
use std::collections::HashMap;

#[napi(object)]
#[derive(Default)]
pub struct Options {
    pub url: String,
    pub headers: Option<HashMap<String, String>>,
    pub request_type: RequestType,
    pub response_type: ResponseType,
    pub json_data: Option<String>,
}
